Bookmark
Don't Let Hibernate Steal Your Identity - O'Reilly Media
www.onjava.com/pub/a/onjava/2006/09/13/dont-let-hibernate-steal-your-identity.html, posted 2009 by peter in development java sql storage toread
Object identity is deceptively hard to implement correctly when objects are persisted to a database. However, the problems stem entirely from allowing objects to exist without an id before they are saved. We can solve these problems by taking the responsibility of assigning object IDs away from object-relational mapping frameworks such as Hibernate. Instead, object IDs can be assigned as soon as the object is instantiated. This makes object identity simple and error-free, and reduces the amount of code needed in the domain model.